package com.ruoyi.eqmonitor.smdtv.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.eqmonitor.smdtv.service.ISmdtv17Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "其他")
@RestController
@RequestMapping("/smdtv17")
public class Smdtv17Controller {

    @Resource
    private ISmdtv17Service ISmdtv17Service;

    /**
     * 根据水系名称获取其他
     */
    @ApiOperation("根据水系名称获取其他")
    @GetMapping("/getByName")
    public AjaxResult getByName(String name){
        return AjaxResult.success(ISmdtv17Service.getByName(name));
    }

}
